<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CategoryUser extends Model
{
	protected $guarded = ['id'];

    public function category()
    {
    	return $this->belongsTo(Category::class);
    }

    public function worker()
    {
    	return $this->belongsTo(User::class,'worker_id','id');
    }
}
